I'm using Borland c++ compiler (4.5), and I have some problem using templates.
This is my problem
I can easily declare a class as a template and then run the program if the implementation of the methods aare in the same file as the main or the procedudre that use the template.
If I want to split up the code: main.cpp template1.cpp template2.cpp...
Then Borland comes with an error at linking tiime saying undefined method for all the method of the template.
When I split up the code, I create a project which include all the cpp files.
But...
I also have a look at the compiler option (there is an index for templates), but I don't understand how it works. If the solution is there can you give me a hand please